package thread;

public class PrintChar implements Runnable{
	private int count;
	private int number;
	private char c;
	public PrintChar(char c,int number) {
		this.number=number;
		this.c=c;
	}
	@Override
	public void run() {
		while(count<number){
			if(count%3==c-'A'){
				System.out.println(c);
				count++;
			}
			Thread.yield();
		}
	}
	
}
